package com.foton.mybatis;

import com.foton.mybatis.dao.UserDao;
import com.foton.mybatis.eunm.SqlType;
import com.foton.mybatis.factory.SqlSessionFactory;
import com.foton.mybatis.factory.SqlSessionFactoryBuilder;
import com.foton.mybatis.session.SqlSession;

/**
 * @Author RenPu
 * @Date 2023/3/29 15:17
 * @Version 1.0
 * @Description:
 **/
public class FontonMybatisApplication {


    public static void main(String[] args) {

        //获取SqlSessionFactory对象（解析配置文件）
        SqlSessionFactory factory= SqlSessionFactoryBuilder.builder("conf.properties");
        //通过SqlSessionFactory获取SqlSession对象
        SqlSession sqlSession=factory.openSession();

        //获取指定Mapper接口对象
        UserDao userDao=sqlSession.getMapper(UserDao.class);


        //调用Mapper对象中的具体方法进行执行




    }

}
